﻿using System;
using System.Collections;
using System.Linq;
using System.Text;

namespace DataMiner
{
    public class ChatMessage
    {
        public int id { get; set; }
        public string server { get; set; }
        public string senderName { get; set; }
        public string recipientName { get; set; }
        public string text { get; set; }
        public string type { get; set; }

        public Hashtable toHashTable()
        {
            Hashtable h = new Hashtable();
            h.Add("server", server);
            h.Add("senderName", senderName);
            h.Add("recipientName", recipientName);
            h.Add("text", text);
            h.Add("type", type);

            Hashtable h2 = new Hashtable();
            h2.Add("message", h);
            
            return h2;
        }
    }
}
